import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 人员替岗
 * */
export const workforcemanagementShiftCreate = (data) => postRequest('/workforcemanagement/shift/create', data);
export const workforcemanagementShiftUpdate = (data) => putRequest('/workforcemanagement/shift/update', data);
export const workforcemanagementShiftDelete = (params) => deleteRequest('/workforcemanagement/shift/delete', params);
export const workforcemanagementShiftGet = (params) => getRequest('/workforcemanagement/shift/get', params);
export const workforcemanagementShiftPage = (params) => getRequest('/workforcemanagement/shift/page', params);

// 根据时间获取班次人员信息
export const workforcemanagementScheduleShiftByTime = (params) => getRequest('/workforcemanagement/schedule-shift/by-time', params);

export const workforceManagementScheduleReplacePostCreate = (params) => postRequest('/workforcemanagement/schedule-replace-post/create', params);
export const workforceManagementScheduleReplacePostGet = (params) => getRequest('/workforcemanagement/schedule-replace-post/get', params);
export const workforceManagementScheduleReplacePostPage = (params) => getRequest('/workforcemanagement/schedule-replace-post/page', params);
export const workforceManagementScheduleReplacePostDelete = (params) => deleteRequest('/workforcemanagement/schedule-replace-post/delete', params);
export const workforceManagementScheduleReplacePostUpdate = (params) => putRequest('/workforcemanagement/schedule-replace-post/update', params);
